﻿@model IEnumerable<iDMS.Models.Employee>

<script type="text/javascript">
    $(function () {
        $("a.action").button();
    });

    
</script>

<table>
    <tr>
        <th></th>
        <th>
            Name
        </th>
        <th>
            LastName
        </th>
        <th>
            Phone
        </th>
        <th>
            Department
        </th>
        
    </tr>

@foreach (var item in Model) {
    <tr>
    <td>           
            @Html.ActionLink("Details", "Details", new { id = item.EmployeeID }, new { @class = "action" })
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LastName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Phone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Department.FullName2)
        </td>
        
    </tr>
}

</table>
